import { createApp } from 'vue'
import { createPinia } from 'pinia'
import Antd from 'ant-design-vue'
import App from './App.vue'
import router from './router'
import 'ant-design-vue/dist/reset.css'
import emitter from './utils/eventBus'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(Antd)

// 提供事件总线给所有组件
app.provide('emitter', emitter)

app.mount('#app')